/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2022-12-02 16:01:24
 * @LastEditors: 贺楠 1071780426@qq.com
 * @LastEditTime: 2024-05-15 18:03:21
 * @FilePath: \mould\src\views\pages\Supervision\regexDetail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// import regex from '../../../../utils/regex.js' // 正则表达式
// import {
//     statusType
// } from '@/utils/config'; //配置项

export default {
    searchObj: [ {
        xm: true, //是input
        label: "项目名称：", //字段
        prop: "fprojectid", //字段名
        width: 6, //参考el-col
        disabled: false, //是否禁用
    },
    {
        bd: true, //是input
        label: "标段名称：", //字段
        prop: "fCompanyid", //字段名
        width: 6, //参考el-col
        disabled: false, //是否禁用

    },{
        datePickerIsRange: true, //是input
            label: "取样时间", //字段
            prop: "timeDates", //字段名
            width: 6, //参考el-col
            disabled: false, //是否禁用
            placeholder: "取样时间",

        }, {
            select: true, //是input
            label: "材料种类", //字段
            prop: "keyType", //字段名
            width: 5, //参考el-col
            disabled: false, //是否禁用
            placeholder: "材料种类",
            options: []

        },
        {
            input: true, //是input
            label: "进场编号", //字段
            prop: "taskNumber", //字段名
            width: 6, //参考el-col
            disabled: false, //是否禁用
            placeholder: "进场编号",

        },
        {
            input: true, //是input
            label: "取样编号", //字段
            prop: "fSamplenumber", //字段名
            width: 6, //参考el-col
            disabled: false, //是否禁用
            placeholder: "取样编号",
    
        },
        {
            btn: true, //是input
            width: 12, //参考el-col
        },
    ],
    table_config: {
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
     
        thead: [{
                label: "闭合状态",
                prop: "fStatus",
                minWidth: "70px",
                align: "center",
            },
            // {
            //     label: "zt",
            //     prop: "fResult",
            //     minWidth: "100px",
            //     align: "center",
            // },
            {
                label: "项目简称",
                prop: "fProjectname",
                minWidth: "150px",
                align: "left",
            },
            {
                label: "标段",
                prop: "fCompanyname",
                minWidth: "60px",
                align: "left",
                
            },
            {
                label: '样品名称',
                prop: 'fSamplename',
                minWidth: '120px',
                align: "center",
                
            },
            {
                label: "取样编号",
                prop: "fSamplenumber",
                minWidth: "150px",
                align: "center",
                Jump: true,
            },
            {
                label: "样品描述",
                prop: "fSamplenumdec",
                minWidth: "200px",
                align: "left",
            },
            {
                label: "工程部位/用途",
                prop: "fIntendeduse",
                minWidth: "120px",
                align: "left",
            },
            // {
            //     label: "取样日期",
            //     prop: "fSampledates",
            //     minWidth: "90px",
            //     align: "center",
            // },
            // {
            //     label: "取样人",
            //     prop: "fSampleusername",
            //     minWidth: "80px",
            //     align: "center",
            // }, 
            {
                label: "委托日期",
                prop: "fCommissiondates",
                minWidth: "90px",
                align: "center",
            }, {
                label: "委托人",
                prop: "fCommissionname",
                minWidth: "80px",
                align: "center",
            }, {
                label: "接收委托单位",
                prop: "fUnitname",
                minWidth: "120px",
                align: "left",
            }, {
                label: "委托单号",
                prop: "fOrdernumber",
                minWidth: "100px",
                align: "center",
            },
             {
                label: "报告编号",
                prop: "fReportnumber",
                minWidth: "100px",
                align: "center",
            },
            {
                label: "报告日期",
                prop: "fReportdates",
                minWidth: "100px",
                align: "center",
            },
            {
                label: "报告判定",
                prop: "fReportresult",
                minWidth: "100px",
                align: "center",
            },
            
            
        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '操作',
            width: '100',
            detail: true,
            prop: true,
            cols: [],
            // specialClass: (rowData) => {
            //     console.log(rowData);
            //     var color = null
            //     if (rowData == '未闭合') {
            //         color = 'red !important'
            //     } else if (rowData == '已闭合') {
            //         color = 'green !important'
            //     } else if (rowData == '无需闭合') {
            //         color = '#000 !important'
            //     } else {
            //         color = '#409eff !important'
            //     }
            //     return color
            // }
        },
    },

    btnObj: [{
            fEncode: "yj_view",
            fFullname: "查看",
            fOrder: 7
        },{
            fEncode: "yj_export",
            fFullname: "闭合",
            fOrder: 1
        },
        {
            fEncode: "yj_export",
            fFullname: "导出",
            fOrder: 2
        }
        

    ]
}